/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.shop.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 评论回复Entity
 * @author 马勇强
 * @version 2019-05-21
 */
public class Reply extends DataEntity<Reply> {
	
	private static final long serialVersionUID = 1L;
	private Comments comments;		// 评论ID
	private String rPerson;		// 回复人
	private String rNews;		// 回复信息
	private String redPerson;		// 被回复人
	private Date rTime;		// 回复时间



	public Reply() {
		super();
	}

	public Reply(String id){
		super(id);
	}


	public Comments getComments() {
		return comments;
	}

	public void setComments(Comments comments) {
		this.comments = comments;
	}
	
	@Length(min=0, max=255, message="回复人长度必须介于 0 和 255 之间")
	public String getRPerson() {
		return rPerson;
	}

	public void setRPerson(String rPerson) {
		this.rPerson = rPerson;
	}
	
	@Length(min=0, max=255, message="回复信息长度必须介于 0 和 255 之间")
	public String getRNews() {
		return rNews;
	}

	public void setRNews(String rNews) {
		this.rNews = rNews;
	}
	
	@Length(min=0, max=255, message="被回复人长度必须介于 0 和 255 之间")
	public String getRedPerson() {
		return redPerson;
	}

	public void setRedPerson(String redPerson) {
		this.redPerson = redPerson;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getRTime() {
		return rTime;
	}

	public void setRTime(Date rTime) {
		this.rTime = rTime;
	}
	
}